
#ifndef _CONSTRAIN
#define _CONSTRAIN

#include "../hed/entity/ipoint.h"
#include <vector>
using namespace std;


class Vertex;
class Attribute;

class Constrain
{
public:
  Constrain( Vertex* _vertex );
  bool isSelected();
  void setAttribute( Attribute* _attribute ) {m_attribute = _attribute;};
  Attribute* getAttribute() {return m_attribute;};
  void getCenter( double& _xc, double& _yc );	
  int getIdFromMesh();	
  void setIdFromMesh( int _id );	
protected:
private:
  Vertex* m_vertex;
  Attribute* m_attribute;
  int m_nodeId;
};


#endif
